package com.monkey.model.comparator;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/14.
 */
public class MonkeyTradeSort {
    private int price;      // 价格 从小到大1，从大到小-1，未选中0
    private int generation; // 代数 从小到大1，从大到小-1，未选中0
    private int weight;     // 体重 从小到大1，从大到小-1，未选中0
    private int reproduct;  // 生育 从小到大1，从大到小-1，未选中0
    private int specify;    // 指定代数，不指定-1
    private int offset;     // 起始
    private int num;        // 数量

    public MonkeyTradeSort(int price, int generation, int weight, int reproduct, int specify, int offset, int num) {
        this.price = price;
        this.generation = generation;
        this.weight = weight;
        this.reproduct = reproduct;
        this.specify = specify;
        this.offset = offset;
        this.num = num;
    }

    public boolean isPrice() {
        return price != 0;
    }

    public boolean isGeneration() {
        return generation != 0;
    }

    public boolean isWeight() {
        return weight != 0;
    }

    public boolean isReproduct() {
        return reproduct != 0;
    }

    public boolean getPrice() {
        return price == 1;
    }

    public boolean getGeneration() {
        return generation == 1;
    }

    public boolean getWeight() {
        return weight == 1;
    }

    public boolean getReproduct() {
        return reproduct == 1;
    }

    public int getSpecify() {
        return specify;
    }

    public int getOffset() {
        return offset;
    }

    public int getNum() {
        return num;
    }
}
